

package feesmodule.converter;

import feesmodule.domain.JurisdictionServices;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="services")
public class JurisdictionServicesConverter
{
    private List<JurisdictionServices> jurisdictionServices;

    public JurisdictionServicesConverter(List<JurisdictionServices> services)
    {
        this.jurisdictionServices = services;
    }
    public JurisdictionServicesConverter()
    {
    
    }


 
    @XmlElement(name="servicemap")
    public Collection<ServiceMapConverter> getServices()
    {
        Collection <ServiceMapConverter> result = new ArrayList<ServiceMapConverter>();
        for(JurisdictionServices serviceMap : jurisdictionServices)
        {

            result.add(new ServiceMapConverter(serviceMap));
        }
        return result;
    }

}
